package com.xjtu.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

/**
 * (Medication)实体类
 *
 * @author makejava
 * @since 2023-11-12 14:25:06
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Medication implements Serializable {
    private static final long serialVersionUID = -51618429369533296L;
    
    private Integer id;
    /**
     * 老人的id
     */
    private Integer elderlyId;
    /**
     * 药名
     */
    private String medicationName;
    /**
     * 服药频率
     */
    private Integer frequency;
    /**
     * 剩余的药物数量
     */
    private Integer remain;
    /**
     * 上次服用时间，用来生成下次的提醒
     */
    private LocalDateTime lastTake;
    /**
     * 备注
     */
    private String remark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Integer elderlyId) {
        this.elderlyId = elderlyId;
    }

    public String getMedicationName() {
        return medicationName;
    }

    public void setMedicationName(String medicationName) {
        this.medicationName = medicationName;
    }

    public Integer getFrequency() {
        return frequency;
    }

    public void setFrequency(Integer frequency) {
        this.frequency = frequency;
    }

    public Integer getRemain() {
        return remain;
    }

    public void setRemain(Integer remain) {
        this.remain = remain;
    }

    public LocalDateTime getLastTake() {
        return lastTake;
    }

    public void setLastTake(LocalDateTime lastTake) {
        this.lastTake = lastTake;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}

